<?php
// +----------------------------------------------------------------------
// | Author: yaoyihong <510974211@qq.com>
// +----------------------------------------------------------------------

namespace app\api\model;

class CashOutLog extends ApiBase
{

    protected $auto = ['addtime'];

    protected function setaddTimeAttr($value)
    {
        return time();
    }
    protected function setCashDataAttr($value){
    	return json_encode($value);
    }
    protected function getAddtimeAttr($value){
    	if ($value) {
            return date('Y-m-d', $value);
        } else {
            return $value;
        }
    }
}